package com.study.pojo.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaserResp {
    private Integer code;
    private String msg;
    private Object data;
    private Long total;

    public BaserResp SUCCESS(){
        return new BaserResp(1,"ok",null,null);
    }

    public BaserResp ERROR(){
        return new BaserResp(0,"fail",null,null);
    }
}
